package day02;

import java.util.Scanner;

public class MainTest4 {
    public static void main(String[] args){
        System.out.println("请输入4位会员卡号：");
        Scanner input = new Scanner(System.in);
        int id = input.nextInt();
        System.out.println("会员卡号是："+id);
        int qianwei = id/1000;
        System.out.println("千位："+qianwei);
        int bai = id%1000;
        System.out.println("百位："+bai);
        int shiwei = id%1000%100;
        System.out.println("十位："+shiwei);
        int gewei =id%1000%100%10;
        System.out.println("个位："+gewei);
        int sum = qianwei+bai+shiwei+ gewei;
        System.out.println(sum>24?"奖励mp3":"很遗憾，继续努力");

    }
}
